<?php
	require_once('include/menu.class.php');
	require_once('include/user.class.php');
	require_once('include/database.class.php');
	User::start();
	if(User::isLoggedIn()) header("Location: index.php");
	$menu = Menu::create();
	$db = new Database();
	echo '<?xml version="1.0" encoding="UTF-8"?>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="pl">
<head>
	<title>Baza danych obiektów turystycznych</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="icon" type="image/png" href="images/group.png">
	<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
	<?php
		echo $menu;
		if(false)
		{
			?>
				<div id="success-listing">
				<ul>
				</ul>
				</div>
				<div id="error-listing">
				<ul>
				</ul>
				</div>
			<?php
		}
	?>
	<div id="admin-container">
		<h3><img src="images/user_add.png" /> Nowy użytkownik</h3>
		<div id="new-user">
		<form method="post" action="adduser.php">
			Login:<br/><input type="text" name="login" /><br/>
			Hasło:<br/><input type="password" name="pass" /><br/>
			Imię:<br/><input type="text" name="imie" /><br/>
			Nazwisko:<br/><input type="text" name="nazwisko" /><br/>
			E-mail:<br/><input type="text" name="mail" /><br/>
			<input type="submit" name="submit" value="Dodaj użytkownika" />
		</form>
		</div>
	</div>
</body>
</html>